package com.ahearttogo.rpc.codec;

import com.alibaba.fastjson.JSON;

/**
 * @author xiejialin
 * @date 2020/2/17 2:50 PM
 */

public class JsonDecoder implements Decoder {
    @Override
    public <T> T decode(byte[] bytes, Class<T> clazz) {
        return JSON.parseObject(bytes,clazz);
    }
}
